package com.lry.basic.nio.mapped;

import java.nio.ByteBuffer;

public interface IndexFile<T> {

    int calWritePos(ByteBuffer buf);

    byte[] toBytes(T t,int pos);

    T get(int id,ByteBuffer buf);
}
